/*
 * @Author: weikang
 * @Description:
 * @Date: 2024-03-10 18:59:51
 * @LastEditTime: 2024-05-05 13:40:56
 * @FilePath: \env-manager-pc\src\api\modules\statistics.ts
 */
import api from '../index'

export default {
  // 企业采集成功率
  GetEnterpriseCollectRangeStat: (data: { startTime: string, endTime: string, objFilter: any, pageSize: number, pageNum: number }) => api<any>({
    url: `/Env/Data/GetEnterpriseCollectRangeStat`,
    method: 'post',
    data,
  }),
  // 设备采集成功率
  GetDeviceCollectRangeStat: (data: { startTime: string, endTime: string, objFilter: any, pageSize: number, pageNum: number }) => api<any>({
    url: `/Env/Data/GetDeviceCollectRangeStat`,
    method: 'post',
    data,
  }),
  // 设备采集成功率
  GetDeviceCurrentRunInfo: (data: { objFilter: any, pageSize: number, pageNum: number }) => api<any>({
    url: `/Env/Data/GetDeviceCurrentRunInfo`,
    method: 'post',
    data,
  }),
  // 无档案设备
  GetUnknownConnect: (data: { ips: string[], startTime: string | null, endTime: string | null, address: string[], isOnline: boolean | null, pageSize: number, pageNum: number }) => api<any>({
    url: `/Obj/Device/Connect/GetUnknownConnect`,
    method: 'post',
    data,
  }),
}
